package com.howbuy.tms.zuul;

import com.howbuy.tms.zuul.filter.TokenFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

/**
 * 
 * @description: 启动支持网关路由
 * 
 * @author jixing.zhang
 * @date 2019年4月3日 下午5:30:46
 * @since JDK 1.6
 */
@SpringBootApplication
@EnableZuulProxy
public class TmsZuulApplication {

    public static void main(String[] args) {
        SpringApplication.run(TmsZuulApplication.class, args);
    }

    @Bean
    public TokenFilter tokenFilter() {
        return new TokenFilter();
    }

}
